import { get, post } from './methods'
// 封装具体的请求方法
// 请求天气
export const getWeather = (version: string) => {
    return get({
        url: 'http://v1.yiketianqi.com/api',
        params: {
            unescape: 1,
            version,
            appid: '91539445',
            appsecret: '8TSA84bz'
        }
    })
}

// 获取学生分布情况数据
export const getStudents = () => {
    return get({
        url: '/v1.0/api/intelligentDetection/data'
    })
}


// 获取水电用量数据
export const getHydroelectric = () => {
    return get({
        url: '/v1.0/api/intelligentDetection/dataTop'
    })
}

// 获取校园人员流动情况数据
export const staffTurnover = () => {
    return get({
        url: '/v1.0/api/intelligentDetection/dataBottom'
    })
}